package com.jy.rhin.model.header;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import lombok.Data;

/**
 * @Author 姚俊
 * @Date 2023/2/3 16:45
 * @Description 地址
 */
@Data
public class Addr {

    //地址-门牌号码
    @XPath(path = "/houseNumber/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_009_06,nullable=true))
    String houseNumber;
    //现住地址-村（街、路、弄等）
    @XPath(path = "/streetName/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_009_05,nullable=true))
    String streetName;
    //地址-乡（镇、街道办事处）
    @XPath(path = "/township/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_009_04,nullable=true))
    String township;
    //地址-县（区）
    @XPath(path = "/county/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_009_03,nullable=true))
    String county;
    // 地址-市（地区）
    @XPath(path = "/city/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_009_02,nullable=true))
    String city;
    // 地址-省（自治区、直辖市）
    @XPath(path = "/state/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_009_01,nullable=true))
    String state;
    //邮政编码
    @XPath(path = "/postalCode/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_047_00,nullable=true))
    String postalCode;
}
